package com.ylfstu.Homework.homework05;

public class Employee {
    private String name;
    private int age;
    private Double sal;

    public Employee(String name, int age, Double sal) {
        this.name = name;
        this.age = age;
        this.sal = sal;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getSal() {
        return sal;
    }

    public void setSal(Double sal) {
        this.sal = sal;
    }

    public void PrintAllYearSal() {
        System.out.println(name + "全年工资为" + (sal * 12));
    }
}
